package com.net.rip.entity;

import java.io.Serializable;

/**
 * 路由信息实体类
 */
public class Information implements Serializable {


    private String targetNetwork;  //目的网络
    private int distance;          //距离
    private String nextJumpRouter; //下一跳路由器

    public Information() {

    }

    @Override
    public String toString() {
        return "\n" + "\t" + targetNetwork +
                "\t\t" + distance +
                "\t" + nextJumpRouter;
    }

    public void setTargetNetwork(String targetNetwork) {
        this.targetNetwork = targetNetwork;
    }

    public void setDistance(int distance) {
        this.distance = distance;
    }

    public void setNextJumpRouter(String nextJumpRouter) {
        this.nextJumpRouter = nextJumpRouter;
    }

    public String getTargetNetwork() {
        return targetNetwork;
    }

    public int getDistance() {
        return distance;
    }

    public String getNextJumpRouter() {
        return nextJumpRouter;
    }

    public Information(String targetNetwork, int distance, String nextJumpRouter) {
        this.targetNetwork = targetNetwork;
        this.distance = distance;
        this.nextJumpRouter = nextJumpRouter;
    }
}


